x86/svm: Drop the suggestion of Long Mode Segment Limit support
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 20 Jul 2018 15:43:49 +0000 (15:43 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 24 Jul 2018 10:25:53 +0000 (11:25 +0100)
commit8d13ba787c2963f9e3f100d791c5915389c957ec
tree2a257bd53643dba9ed793ab592f234b553471fd6
parentef0269c6215d642a709866f04ba1a1f9f13f3614
x86/svm: Drop the suggestion of Long Mode Segment Limit support

Because of a bug in 2010, LMSL support isn't available to guests.

c/s f2c608444 noticed but avoided fixing the issue for migration reasons.  In
addition to migration problems, changes to the segmentation logic for
emulation would be needed before the feature could be enabled.

This feature is entirely unused by operating systems (probably owing to its
semantics which only cover half the segment registers), and no one has
commented on its absence from Xen.  As supporting it would involve a large
amount of effort, it seems better to remove the code entirely.

If someone finds a valid usecase, we can resurrecting the code and
implementing the remaining parts, but I doubt anyone will.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/pv/emul-priv-op.c
xen/include/asm-x86/hvm/hvm.h
xen/include/asm-x86/msr-index.h